home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000013_icon-group-sender _Thu Jan 13 12:40:48 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  17KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 13 Jan 1994 12:49:29 MST
  2. Date: Thu, 13 Jan 1994 12:40:48 MST
  3. From: "Ralph Griswold" <ralph>
  4. Message-Id: <199401131940.AA01776@cheltenham.cs.arizona.edu>
  5. To: icon-group
  6. Subject: Icon FAQ
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10.  
  11.     Frequently Asked Questions About The Icon Programming Language
  12.  
  13. This FAQ answers various questions about the Icon programming language,
  14. ranging from what it is to how you can get it.  This first version of the
  15. Icon FAQ is devoted to the issues that are likely to be of most interest
  16. to persons who don't know anything about Icon or who are relatively
  17. new to it.  Future versions of this FAQ will answer questions from
  18. more experienced Icon programmers.
  19.  
  20. This FAQ is written by Ralph Griswold with help from Cliff Hathaway,
  21. Clint Jeffery, and Gregg Townsend.
  22.  
  23. Section I -- General Questions:
  24.  
  25. I.1.   What is Icon?
  26. I.2.   What is Icon good for?
  27. I.3.   Where did Icon come from?
  28. I.4.   What does "Icon" stand for?
  29. I.5.   What computers does Icon run on?
  30. I.6.   Who did all these implementations?
  31. I.7.   Are there other implementations in the works?
  32. I.8.   Are there different versions of Icon?
  33. I.9.   Which implementations of Icon have graphics/window capabilities?
  34. I.10.  Where can I get Icon?
  35. I.11.  Where can I get documentation about Icon?
  36. I.12.  What is the Icon Project?
  37. I.13.  Where can I find examples of Icon programs?
  38. I.14.  What is Idol?
  39. I.15.  How often is material in Icon's FTP area updated?
  40. I.16.  How do I stay up to date with what's going on with Icon?
  41. I.17.  Why isn't the Icon Newsletter available electronically?
  42. I.18.  Is there a users' group for Icon?
  43. I.19.  How do I get technical support?
  44. I.20.  Is there an optimizing compiler for Icon?
  45. I.21.  What do I need to run the interpreter?
  46. I.22.  What do I need to run the compiler?
  47. I.23.  Can I build my own implementation of Icon for a new platform?
  48.  
  49. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  50.  
  51. I.1.   What is Icon?
  52.  
  53. Icon is a very high level general-purpose programming language with
  54. extensive features for processing strings (text) and data structures.
  55. Icon is an imperative, procedural language with a syntax that is
  56. reminiscent of C and Pascal, but its semantics are at a much higher level
  57. than those languages.
  58.  
  59. Icon has a novel expression-evaluation mechanism that integrates goal-
  60. directed evaluation and backtracking with conventional control structures.
  61. It has a string scanning facility for pattern matching that avoids 
  62. the tedious details usually associated with analyzing strings. Icon's
  63. built-in data structures include sets and tables with associative lookup,
  64. lists that can be used as vectors or stacks and queues, and records.
  65.  
  66. Icon is a strongly, though not statically, typed language. It provides
  67. transparent automatic type conversion. For example, if an integer is
  68. used in an operation that requires a string, the integer is automatically
  69. converted to a string.
  70.  
  71. Several implementations of Icon have high-level graphics facilities with
  72. an easily programmed window interface.
  73.  
  74. Icon manages storage automatically. Objects are created as needed during
  75. program execution and space is reclaimed by garbage collection as needed.
  76. The sizes of strings and data structures are limited only by the amount
  77. of available memory.
  78.  
  79.  
  80. I.2.   What is Icon good for?
  81.  
  82. As a general-purpose programming language with a large computational
  83. repertoire, Icon can be used for most programming tasks.  It's at
  84. its best when used as a prototyping tool, for processing text, and when
  85. ease of programming is needed for experimental and research applications.
  86.  
  87. Paradoxically, Icon is used most often for short, one-shot tasks and for very
  88. complex applications.
  89.  
  90. Icon is designed to make programming easy; it emphasizes the value of
  91. programmer's time and the importance of getting programs to work quickly.
  92. This explains its usefulness for prototyping as well as the apparent
  93. paradox of applicability to simple and complex applications.
  94.  
  95.  
  96. I.3.   Where did Icon come from?
  97.  
  98. Icon is the latest in a series of high-level programming languages designed
  99. to facilitate programming tasks involving strings and structures. The
  100. original language, SNOBOL, was developed at Bell Telephone Laboratories
  101. in the early 60s.  SNOBOL evolved into SNOBOL4, which is still in use.
  102. Subsequent languages were developed at The University of Arizona with
  103. support from the National Science Foundation.
  104.  
  105. Incidentally, Icon bears little physical resemblance to SNOBOL4, although
  106. it has similar objectives and many similar capabilities.
  107.  
  108.  
  109. I.4.   What does "Icon" stand for?
  110.  
  111. The name Icon (which is not spelled ICON) is not an acronym nor does it
  112. stand for anything in particular, although the word iconoclastic was
  113. mentioned at the time the name was chosen.  The name predates the now
  114. common use of "icon" to refer to small images used in graphical user
  115. interfaces.  This latter usage sometimes causes persons to think mistakenly
  116. that Icon is designed to create or manipulate icons.  There's not much
  117. that can be done about this.
  118.  
  119.  
  120. I.5.   What computers does Icon run on?
  121.  
  122. The implementation of Icon is highly portable. There are versions for
  123. the Acorn Archimedes, the Amiga, the Atari ST, IBM CMS and MVS, the
  124. Macintosh, MS-DOS, OS/2, UNIX, and VMS.  Nearly 60 UNIX platforms are
  125. supported.
  126. Icon programs also are highly portable. Most Icon programs can run on
  127. any platform that supports Icon.
  128.  
  129.  
  130. I.6.   Who did all these implementations?
  131.  
  132. The original implementation of Icon for UNIX was done at The University
  133. of Arizona.  Most of the other implementations originally were done
  134. by volunteers scattered around the world.
  135.  
  136. It's worth noting that all implementations of Icon are based on the same
  137. source code, which is written in C.  This contributes to the portability 
  138. of Icon itself, as well as to the portability of programs written in Icon.
  139.  
  140.  
  141. I.7.   Are there other implementations in the works?
  142.  
  143. Yes, work is constantly underway on implementations of Icon for new
  144. platforms.  Present projects include Windows NT, Windows32, the DEC Alpha
  145. running under UNIX, and a new Macintosh implementation.
  146.  
  147.  
  148. I.8.   Are there different versions of Icon?
  149.  
  150. Icon has evolved through a series of versions with improved and extended
  151. capabilities.  The latest major version number is 8.  Recent changes
  152. and additions, notably in the graphics area, have brought the current
  153. level to 8.10.  (Version 8.11 is, of course, in the works.)  Most
  154. implementations are up to 8.10, although a few for less frequently
  155. used platforms are still at 8.0.  Almost all 8.0 programs will run
  156. under 8.10.
  157.  
  158.  
  159. I.9.   Which implementations of Icon have graphics/window capabilities?
  160.  
  161. Icon's graphics facilities presently are supported on the OS/2, UNIX, and
  162. VMS implementations.  The UNIX and VMS implementations use X, while the
  163. OS/2 implementation uses Presentation Manager.
  164.  
  165. The NT, Windows32, and DEC Alpha implementations that are in progress
  166. will support Icon's graphics facilities.  There also is a Macintosh
  167. implementation to support graphics in the works.
  168.  
  169.  
  170. I.10.  Where can I get Icon?
  171.  
  172. Most implementations of Icon are available via anonymous FTP to
  173. cs.arizona.edu in /icon.  The directory /icon/binaries contains executable
  174. versions of Icon for several systems, including several popular UNIX
  175. platforms.  The directory /icon/packages contains source code and
  176. related material.  All directories have READ.ME files with additional
  177. information.
  178.  
  179. Icon also is available on a variety of physical media for prices ranging
  180. from $15 to $50.  Contact:
  181.  
  182.     Icon Project
  183.     Department of Computer Science
  184.     The University of Arizona
  185.     Tucson, AZ   85721
  186.  
  187.     602-621-8448 (voice)
  188.     602-621-4246 (fax)
  189.  
  190.     icon-orders@cs.arizona.edu (e-mail)
  191.  
  192. Request a copy of the Icon Newsletter for a listing of what's available
  193. and what the prices are.
  194.  
  195. Purchases can be made by credit card (MasterCard, Visa, or Discover) or
  196. by check drawn on a bank with a branch in the United States and made
  197. payable to The University of Arizona.
  198.  
  199.  
  200. I.11.  Where can I get documentation about Icon?
  201.  
  202. The definitive work on Icon is the book
  203.  
  204.     The Icon Programming Language, Griswold and Griswold,
  205.     Prentice-Hall, 1990, 367 pages, ISBN 0-13-447889-4.
  206.  
  207. This book is a complete description and reference manual for Version 8 of
  208. Icon.
  209.  
  210. There also is a book on the implementation of Icon:
  211.  
  212.     The Implementation of the Icon Programming Language, Griswold
  213.     and Griswold, Princeton University Press, 1986, 336 pages, ISBN
  214.     0-691-08431-9.
  215.  
  216. This book describes the implementation as of Version 6 of Icon.  Although
  217. the implementation has changed somewhat since then, the basic structure
  218. is the same.  Technical reports describing recent implementation changes
  219. are included with books purchased from the Icon Project.
  220.  
  221. These books are available from the Icon Project or from any book store
  222. that handles special orders.
  223.  
  224. Additional documentation is available via FTP in /icon/doc.  Notable
  225. documents are:
  226.  
  227.     TR 90-6      an overview of Icon
  228.     TR 93-9      graphics/window facilities
  229.     IPD212      changes between Versions 8.0 and 8.10
  230.  
  231. There are manual pages for UNIX systems, but there is no complete
  232. on-line documentation.  
  233.     
  234. The Icon Newsletter, which includes topical material about Icon and
  235. a list of material available from the Icon Project, is published three
  236. times a year.  Subscriptions are free; contact the Icon Project to get
  237. a copy of the latest Newsletter and to be put on the mailing list.
  238.  
  239. The Icon Analyst, a technically oriented newsletter that features articles
  240. about programming, is published six times a year.  There is a subscription
  241. fee for the Analyst.  A sample copy is available on request.
  242.  
  243. All back issues of both newsletters are available for purchase.
  244.  
  245.  
  246. I.12.  What is the Icon Project?
  247.  
  248. The Icon Project is a name used by the group at The University of
  249. Arizona that develops, implements, distributes, and supports the
  250. Icon programming language.
  251.  
  252. The Icon Project is not commercial organization.  It derives support
  253. from The University of Arizona, grants, and (primarily) revenues from
  254. the sale of program material and documentation.
  255.  
  256.  
  257. I.13.  Where can I find examples of Icon programs?
  258.  
  259. There is a large program library for Icon.  It is an excellent resource
  260. for both new and experienced programmers, containing numerous examples of
  261. how to do things with Icon.  The library also provides many useful
  262. applications, as well as hundreds of procedures that can be used to
  263. supplement Icon's built-in repertoire.
  264.  
  265. The library, like other Icon material, is available via FTP (cd /icon/library)
  266. and on physical media from the Icon Project.
  267.  
  268.  
  269. I.14.  What is Idol?
  270.  
  271. Idol is an object-oriented extension to Icon that provides concepts such
  272. as classes and multiple inheritance.  Idol is written in Idol and is
  273. distributed as part of the Icon program library.  Idol runs on almost all
  274. of the platforms that Icon runs on.
  275.  
  276. Additional Idol information is available from Clint Jeffery,
  277. jeffery@ringer.cs.utsa.edu.
  278.  
  279.  
  280. I.15.  How often is material in Icon's FTP area updated?
  281.  
  282. New material is added when it's available.  Established implementations
  283. usually are only updated when there's a major new release.  This typically
  284. is every year or two.  The Icon program library is updated on a similar
  285. schedule.
  286.  
  287.  
  288. I.16.  How do I stay up to date with what's going on with Icon?
  289.  
  290. The best way to find out about developments related to Icon is to
  291. subscribe to the Icon Newsletter.  It's free, but it is distributed
  292. only by postal mail, so you must provide a mailing address.
  293.  
  294. You can stay up to date on the source code, which is changed much more
  295. frequently than the version on FTP is updated, by subscribing to the
  296. source update service, which provides a new version about three times
  297. a year.
  298.  
  299. There also is a subscription service for updates to the Icon program
  300. library, which provides new material three or four times a year.
  301.  
  302. See the Icon Newsletter for information about subscribing to these
  303. services.
  304.  
  305.  
  306. I.17.  Why isn't the Icon Newsletter available electronically?
  307.  
  308. The Icon Newsletter contains diagrams, images, and other material that
  309. cannot be rendered in plain ASCII text.  The Newsletter is prepared with
  310. a desktop publishing system that produces PostScript, but the files are
  311. enormous -- too large to justify their inclusion in the Icon FTP area.
  312. Selected articles from the Newsletter are available by FTP in
  313. /icon/doc/articles.
  314.  
  315.  
  316. I.18.  Is there a users' group for Icon?
  317.  
  318. There is no official Icon users' group.  The Icon Project maintains a
  319. mailing list, icon-group@cs.arizona.edu.  Mail sent to this address
  320. is forwarded to subscribers.  To subscribe (or unsubscribe), send a
  321. message to icon-group-request@cs.arizona.edu.
  322.  
  323. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  324. newsgroup for discussing issues related to Icon.  The gateway, which
  325. exchanges messages between the two systems, is imperfect and not under
  326. the control of the Icon Project.
  327.  
  328. The newsgroup generally provides faster response than the mailing list.
  329. The newsgroup is less intrusive, but it sometimes suffers from inappropriate
  330. postings.  The Icon Project usually sends messages of interest to the
  331. Icon community to icon-group.
  332.  
  333. I.19.  How do I get technical support?
  334.  
  335. Free technical support is available from the Icon Project via electronic
  336. mail to icon-project@cs.arizona.edu or by fax, telephone, and postal mail
  337. to the Icon Project as listed above.
  338.  
  339. Since the Icon Project is not a commercial organization, support is limited
  340. to what it can provide with its available resources.  If the Icon Project
  341. cannot help with a problem (such as for a platform it doesn't have), it will
  342. attempt to provide a contact with someone who can help.
  343.  
  344.  
  345. I.20.  Is there an optimizing compiler for Icon?
  346.  
  347. Yes.  The original implementation was an interpreter.  An optimizing
  348. compiler was added a few years ago.  The interpreter and compiler are
  349. largely source-language compatible.
  350.  
  351. The interpreter is used by most Icon programmers because it gets into
  352. execution quickly and runs fast enough for most applications.  The compiler
  353. is best suited for applications that require the fastest possible
  354. execution time.  In this case, it's generally best to develop the program
  355. using the interpreter and compile the final result from production use.
  356.  
  357.  
  358. I.21.  What do I need to run the interpreter?
  359.  
  360. The Icon interpreter will run on most computers.  It requires a reasonable
  361. amount of memory, however.   Under MS-DOS, the Icon interpreter needs
  362. 500KB of RAM to work well.
  363.  
  364.  
  365. I.22.  What do I need to run the compiler?
  366.  
  367. The Icon compiler is another matter.  It requires a C compiler, a fast
  368. CPU for tolerable compilation times, a considerable amount of disk
  369. space, and a lot of memory -- at least several megabytes.
  370.  
  371. The Icon compiler generates C code, which must then be compiled to
  372. produce an executable program.  The flexibility that Icon provides to
  373. programmers makes compilation technically difficult and the process
  374. requires a large amount of memory.  The C code it produces is voluminous
  375. and stresses the most robust C compilers.
  376.  
  377. Generally speaking, the Icon compiler is practical for platforms in
  378. the workstation class but not for most personal computers.  Although
  379. the compiler can be built and made to run on 286 platforms running
  380. standard MS-DOS, only trivially small programs can be compiled.  In
  381. principle, the Icon compiler is practical on MS-DOS 386/486 platforms
  382. with extended memory, but the limited availability of suitable 32-bit C
  383. compilers for this environment has discouraged the use of the Icon compiler
  384. on such platforms.
  385.  
  386.  
  387. I.23.  Can I build my own implementation of Icon for a new platform?
  388.  
  389. As mentioned above, Icon is written in C and the source code is available
  390. via FTP and the Icon Project.  The existing implementations are testament
  391. to its portability.  (There is a small amount of assembly-language code
  392. required for a context switch, but this is only needed for an optional
  393. feature that can be disabled without affecting most of Icon.)
  394.  
  395. New ports involve platform-specific configuration parameters and, in
  396. some cases, platform-specific code.  The feasibility of a new port and
  397. the amount of work it may take depends on the platform -- its architecture,
  398. its C compiler, and its environment.
  399.  
  400. Ports to new UNIX platforms generally are easy, although some, such as the
  401. DEC Alpha, present problems.  Ports to new operating systems generally are
  402. more difficult, especially if Icon's graphics facilities are implemented.
  403.  
  404. The Icon Project provides what help it can with new ports.  In return, it
  405. asks that code related to the port to be returned to the Icon Project for
  406. inclusion in future versions of the source code for Icon.  This makes the
  407. new port available to others as well as to the porter when Icon is updated.
  408.